execute store result score #size temp run data get entity @s Inventory[{Slot:8b}].components."minecraft:custom_data".bag
execute store result storage dab:system temp.index int 1 run scoreboard players remove #size temp 1
function dab:system/arrow_bundle/select/set with storage dab:system temp
data remove storage dab:system temp.index